package com.dream.house.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import cn.com.servyou.base.exception.DAOException;

import com.dream.house.dao.base.IDAO;
import com.dream.house.entity.DocumentDTO;

@Repository
public interface DocumentDAO extends IDAO{

	boolean saveDoc(DocumentDTO dto) throws DAOException;
	
	boolean updateDoc(DocumentDTO dto) throws DAOException;
	
	boolean removeDoc(String id) throws DAOException;
	
	List<DocumentDTO> findsDocs(String type,String title) throws DAOException;
	
	DocumentDTO getDoc(String id) throws DAOException;
}
